package com.vigor.bear.webapp.bean;

/**
 * 消息实体
 * 
 * @version 1.0
 * @author Lan
 */
public class Message {
    private int mid; // 编号
    private String content; // 内容
    private String email; // 邮箱
    private String posted; // 日期

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPosted() {
        return posted;
    }

    public void setPosted(String posted) {
        this.posted = posted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder(100);
        sb.append("{\"mid\":").append(mid).append(",\"content\":\"").append(content);
        sb.append("\",\"email\":\"").append(email).append("\",\"posted\":\"");
        sb.append(posted).append("\"}");
        return sb.toString();
    }
}
